#include "FileQueue.h"
#include <iostream>

using namespace std;
using namespace nsfq;

namespace nsfq{

class CTestFileQueue : public CFileQueue
{
public:
	CTestFileQueue( const string& sPath, const string& sPrefix, const string& sPostfix) : CFileQueue( sPath, sPrefix, sPostfix )
	{};
	virtual ~CTestFileQueue(){};
	int HandleLine( const string &sLine )
	{
		cout << sLine << endl;
		return 0;
	}
};

};


int main()
{
	CTestFileQueue test("./", "", ".log");
	test.DebugOn();
	//test.Start( 1261324752, HOURLY );
	test.Start( time(NULL), MINUTELY );
	//test.Start();
	return 0;
}
